//
//  HallLotteryLayout.m
//  K8彩票
//
//  Created by zhoubo on 2017/6/7.
//  Copyright © 2017年 zhoubo. All rights reserved.
//

#import "HallLotteryLayout.h"

@interface HallLotteryLayout()
@property(nonatomic,assign)NSInteger num;
@end

@implementation HallLotteryLayout

-(instancetype)initWithNum:(NSInteger)num
{
    if (self = [super init]) {
        
        _num = num;
        
    }
    return self;
}


-(void)prepareLayout
{
    CGFloat width = [UIScreen mainScreen].bounds.size.width/3;
    
//    //设置headview的size
    self.headerReferenceSize = CGSizeMake( [UIScreen mainScreen].bounds.size.width, 50);
    
    self.itemSize = CGSizeMake(width, width);
    self.minimumLineSpacing=0;
    self.minimumInteritemSpacing = 0;
    self.collectionView.showsVerticalScrollIndicator = false;

    
}

@end
